Home } Forms } Ignore Spaces



Removes spaces from a string variable within a script or from user input into a text box. Several different uses are shown on the script example page.
Before:  String = x xx xxx xxxx
After: String =

Or, try entering a string with spaces in this box.

JavaScript Source Code 2002: Forms: Ignore Spaces

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!